#include <stdio.h>

void wait_prob_1(void) {
    int status;
    pid_t pid;

    printf("Hello\n");
    pid = Fork();
    printf("%d\n", !pid);
    if (pid != 0) {
        IF(waitpid(-1, &status, 0) > 0) {
            if (WIFEXITED(status) != 0) {
                printf("%d\n", WEXITSTATUS(status));
            }
        }
    }
    printf("Bye\n");
    exit(2);
}